
<template>
  <div class="container">
    <!-- <app-footer></app-footer> -->
    <loading></loading>
    <toast></toast>
    <router-view v-wechat-title="$route.meta.title" img-set="./static/favicon.ico"></router-view>
  </div>
</template>

<script>
import Loading from './components/Loading'
import Toast from './components/Toast'
// import AppFooter from './components/AppFooter.vue'
export default {
  name: 'app',
  components: {
    Loading, Toast
  },
  mounted () {
    // 隐藏分享按钮
    // document.addEventListener('WeixinJSBridgeReady', function onBridgeReady () {
    //   if (typeof window.WeixinJSBridge !== 'undefined') {
    //     window.WeixinJSBridge.call('hideOptionMenu')
    //   } else {
    //     console.log('请在微信内打开')
    //   }
    // })
  }
}
</script>

<style lang="less">
@import './common/css/theme/chineseTheme.less';
@import './common/css/app.less';
@import './assets/css/sprites-generated.css';
</style>
